package com.hwd.gmall.payment.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 支付微服务的feign接口
 *
 * @author 黄伟东/Victor
 * @date 2022/5/11 0:42
 */
@FeignClient(name = "service-payment", path = "/weixin/pay",contextId = "weiXinPayFeignClient")
public interface WeiXinPayFeignClient {

    /**
     * 关闭交易
     *
     * @param orderId 订单id
     * @return java.util.Map<java.lang.String, java.lang.String>
     */
    @GetMapping(value = "/closePay")
    Map<String, String> closePay(@RequestParam("orderId") String orderId);
}
